<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router) {
    $router->resource('drug', \catchAdmin\drug\controller\Drug::class);
    $router->resource('drugType', \catchAdmin\drug\controller\DrugType::class);
    $router->resource('medicationReminder', \catchAdmin\drug\controller\MedicationReminder::class);
    $router->any('getDrug', '\catchAdmin\drug\controller\Drug@getDrug');
    $router->any('getReminderUnit', '\catchAdmin\drug\controller\MedicationReminder@getReminderUnit');
    $router->any('getLatestMar', '\catchAdmin\drug\controller\MedicationReminder@getLatestMar');
})->middleware('auth');
